/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.farent.solutions.plugins.stripes.hyperstripes.core;

/**
 *
 * @author farouka
 */
public class Attribute
{
    private String name;

    private String value;

    public Attribute() {
    }

    public Attribute(String name, String value) {
        this.name = name;
        this.value = value;
    }

    public String getName()
    {
        return name;
    }

    public void setName( String name )
    {
        this.name = name;
    }

    public String getValue()
    {
        return value;
    }

    public void setValue( String value )
    {
        this.value = value;
    }

    @Override
    public String toString()
    {
        return "Attribute{" + "name=" + name + "value=" + value + '}';
    }

    @Override
    public boolean equals( Object obj )
    {
        if ( obj == null )
        {
            return false;
        }
        if ( getClass() != obj.getClass() )
        {
            return false;
        }
        final Attribute other = ( Attribute ) obj;
        if ( ( this.name == null ) ? ( other.name != null )
                : ! this.name.equals( other.name ) )
        {
            return false;
        }
        if ( ( this.value == null ) ? ( other.value != null )
                : ! this.value.equals( other.value ) )
        {
            return false;
        }
        return true;
    }
    
}
